package lingou.homework.postbar.service;

import lingou.homework.postbar.dao.UserMapper;
import lingou.homework.postbar.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HelloService {
    @Autowired
    UserMapper userMapper;
    public String hello(){
        return "hello";
    }
    public List<User> getAllUsers(){
        return userMapper.selectList(null);
    };
}
